<?php
/**
 * Created by PhpStorm.
 * User: 郝飞
 * Date: 2017/7/7
 * Time: 9:33
 * 故事类
 */

namespace Publish\Lib;


class StoryLib {

	/*构造函数*/
	public function __construct() {

	}

	/**
	 * 通过id获取故事详情
	 * @param $storyId 故事id
	 */
	public function IsStory($story_id){
		$story_model = D('PubStory');
		$where['id'] = $story_id;
		$storyInformation = $story_model->where($where)->find();
		return $storyInformation;
	}
}